#ifndef TIMER_H
#define TIMER_H

class timer
{
	public:
	
	timer();
	~timer();
	
	ALLEGRO_TIMER *gTimer;
	
	void startTimer();
	void destroyTimer();
	
	private:
	
};

//sets 60 frames per second
timer::timer()
{
	gTimer = al_create_timer(1.0 / 60);
}

timer::~timer()
{
}

//Starts the timer
void timer::startTimer()
{
	al_start_timer(gTimer);
}

//destorys the timer
void timer::destroyTimer()
{
	al_destroy_timer(gTimer);
}

#endif
